package day04_Array;
// 修改数组里的内容
public class Demo09_ArrayOp1 {
    public static void main(String[] args) {
        int [] arrayA=new int[]{3,6,9};
        System.out.println(arrayA[0]);
        System.out.println(arrayA[1]);
        System.out.println(arrayA[2]);
        // 修改数组里的内容
        arrayA[1]=10;
        arrayA[2]=20;
        System.out.println(arrayA[0]);
        System.out.println(arrayA[1]);
        System.out.println(arrayA[2]);
        System.out.println("================");

        int [] arrayB=new int[]{30,60,90};
        System.out.println(arrayB[0]);
        System.out.println(arrayB[1]);
        System.out.println(arrayB[2]);
        // 修改数组里的内容
        arrayB[1]=600;
        arrayB[2]=600;
        System.out.println(arrayB[0]);
        System.out.println(arrayB[1]);
        System.out.println(arrayB[2]);
        System.out.println("================");

        int [] arrayC=arrayA;
        System.out.println(arrayC[0]);
        System.out.println(arrayC[1]);
        System.out.println(arrayC[2]);
        // 修改数组里的内容
        arrayC[1]=777;
        arrayC[2]=888;
        System.out.println(arrayC[0]);
        System.out.println(arrayC[1]);
        System.out.println(arrayC[2]);
        System.out.println(arrayA[0]);
        System.out.println(arrayA[1]);
        System.out.println(arrayA[2]);
    }
}
